import { combineReducers, Reducer } from "redux";
import {
  settingsReducer,
  weixinOauthReducer,
  userReducer,
  modelPramsReducer,
} from "./system";
import { ActionTypeI } from "../actions";

//   Type 'SettingsI' is not assignable to type 'undefined'.ts(2322)
// const rootReducer: Reducer<RootStateI, ActionTypeI> = combineReducers({
const rootReducer: Reducer<any, ActionTypeI> = combineReducers({
  settings: settingsReducer,
  weixinOauth: weixinOauthReducer,
  user: userReducer,
  params: modelPramsReducer,
});

export default rootReducer;
